﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;


namespace BUS
{
   public class ApplicationsBUS
    {
       public List<aspnet_Application> LayTatCaApplications()
       {
           ApplicationsDAO appDAO = new ApplicationsDAO();
           return appDAO.LayTatCaApplications();
       }

       public List<aspnet_Application> LayTatCaApplicationsTheoApplicationName(string AppName)
       {
           ApplicationsDAO appDAO = new ApplicationsDAO();
           return appDAO.LayTatCaApplicationsTheoApplicationName(AppName);
       }

       public List<aspnet_Application> LayTatCaApplicationsTheoApplicationID(Guid ID)
       {
           ApplicationsDAO appDAO = new ApplicationsDAO();
           return appDAO.LayTatCaApplicationsTheoApplicationID(ID);
       }

       public void ThemApplication(aspnet_Application App)
       {
           ApplicationsDAO appDAO = new ApplicationsDAO();
           appDAO.ThemApplication(App);
       }

       public void XoaApplicationTheoApplicationID(Guid ID)
       {
           ApplicationsDAO appDAO = new ApplicationsDAO();
           appDAO.XoaApplicationTheoApplicationID(ID);
       }

       public void CapNhatApplications(Guid ID, string AppName, string LoweredAppName, string Decs)
       {
           ApplicationsDAO appDAO = new ApplicationsDAO();
           appDAO.CapNhatApplications(ID, AppName,LoweredAppName ,Decs);
       }
    }
}
